package co.baiku.boot.im.easemob.request;

import java.io.Serializable;
import java.util.List;

/**
 * 环信创建群聊天室
 *
 * @author haojiaolong
 * @date 2020/11/7 11:37
 */
public class EasemobChatroomsCreateRequest implements Serializable {
    /**
     * 聊天室名称，此属性为必须的
     */
    private String name;
    /**
     * 聊天室描述，此属性为必须的
     */
    private String description;
    /**
     * 聊天室成员最大数（包括聊天室创建者），值为数值类型，默认值200，最大值5000，此属性为可选的
     */
    private Integer maxusers;
    /**
     * 聊天室的管理员，此属性为必须的
     */
    private String owner;
    /**
     * 聊天室成员，此属性为可选的，但是如果加了此项，数组元素至少一个
     */
    private List<String> members;

    public EasemobChatroomsCreateRequest() {
    }

    public EasemobChatroomsCreateRequest(String name, String description) {
        this(name, description, 5000, "admin");
    }

    public EasemobChatroomsCreateRequest(String name, String description, String owner) {
        this(name, description, 5000, owner);
    }

    public EasemobChatroomsCreateRequest(String name, String description, Integer maxusers, String owner) {
        this.name = name;
        this.description = description;
        this.maxusers = maxusers;
        this.owner = owner;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Integer getMaxusers() {
        return maxusers;
    }

    public void setMaxusers(Integer maxusers) {
        this.maxusers = maxusers;
    }

    public String getOwner() {
        return owner;
    }

    public void setOwner(String owner) {
        this.owner = owner;
    }

    public List<String> getMembers() {
        return members;
    }

    public void setMembers(List<String> members) {
        this.members = members;
    }
}
